package com.wangjiang.mario.admin.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wangjiang.mario.admin.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 文件表
 *
 * @author wangjiang
 * @Date 2019-09-18 18:00:51
 */
@Data
@TableName(value = "mario_upload_log")
@ApiModel(value = "文件上传日志表")
public class FileEntity extends BaseEntity {

    @TableField(value = "origin_filename")
    @ApiModelProperty(value = "原来文件名称")
    private String originFilename;

    @TableField(value = "upload_filename")
    @ApiModelProperty(value = "上传后文件名称")
    private String uploadFilename;

    @TableField
    @ApiModelProperty(value = "文件类型")
    private String extension;

    @TableField(value = "has_resource")
    @ApiModelProperty(value = "源文件是否存在")
    private Boolean hasResource;
}
